package com.atguigu.scala.chapter_02

import java.io.{File, PrintWriter}


object ScalaOut {
  def main(args: Array[String]): Unit = {
    //    val strings = scala.io.Source.fromFile("D:\\OneDrive\\OneDrive - TSCN\\文档\\IDEA\\myscala\\scala\\input\\a.txt").getLines()
//    val out=new PrintWriter(new File("D:\\OneDrive\\OneDrive - TSCN\\文档\\IDEA\\myscala\\scala\\output\\a.txt"))
//    out.write("hello")
    val out1=new PrintWriter(new File("D:\\OneDrive\\OneDrive - TSCN\\文档\\IDEA\\myscala\\scala\\output\\a.txt"))
    out1.write("6666"

    )
    out1.write("77777")
    out1.close()
  }


}
